<template>
  <div class="submit" :style="{top: top ? top + 'px' : '300px'}">
    <img src="../../../assets/img/WechatIMG1225.png" alt="" />
    <span class="desc">
      <slot></slot>
    </span>
  </div>
</template>
<script>
export default {
  props: {
    top: {}
  },
  data() {
    return {};
  }
};
</script>
<style lang="scss" scoped>
.submit {
  position: fixed;
  right: 40px;
  font-size: 18px;
  color: #fff !important;
  cursor: pointer;
  .desc {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    white-space: nowrap;
  }
}
</style>
